package com.city.domain.pub;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 行迹表
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-21 18:54
 */
@Entity
@Table(name = "pub_key_trajectory", schema = "city", catalog = "")
public class PubKeyTrajectory {
    private int id;
    private String tableName; //表名
    private String idIndex;//表中关联字段值
    private String lng;//经度
    private String lat;//纬度
    private String updateTime;
    private String time;//保存时间
    private String remarks;//备注

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }



    @Basic
    @Column(name = "table_name")
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    @Basic
    @Column(name = "id_index")
    public String getIdIndex() {
        return idIndex;
    }

    public void setIdIndex(String idIndex) {
        this.idIndex = idIndex;
    }

    @Basic
    @Column(name = "lng")
    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    @Basic
    @Column(name = "lat")
    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    @Basic
    @Column(name = "update_time")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "time")
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Basic
    @Column(name = "remarks")
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PubKeyTrajectory that = (PubKeyTrajectory) o;
        return id == that.id &&
                Objects.equals(tableName, that.tableName) &&
                Objects.equals(idIndex, that.idIndex) &&
                Objects.equals(lng, that.lng) &&
                Objects.equals(lat, that.lat) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(time, that.time) &&
                Objects.equals(remarks, that.remarks);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, tableName, idIndex, lng, lat, updateTime, time, remarks);
    }


    @Override
    public String toString() {
        return "PubKeyTrajectory{" +
                "id=" + id +
                ", tableName='" + tableName + '\'' +
                ", idIndex='" + idIndex + '\'' +
                ", lng='" + lng + '\'' +
                ", lat='" + lat + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", time='" + time + '\'' +
                ", remarks='" + remarks + '\'' +
                '}';
    }
}
